#ifndef ADDFRIENDRECEIVER_H
#define ADDFRIENDRECEIVER_H

#include "user.h"
#include <QDialog>
#include <QWidget>
#include <qtcpsocket.h>
#include <QHostAddress>
#include <QMessageBox>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonParseError>
#include <QUdpSocket>
#include <QWebSocket>
#include <QCoreApplication>
#include <QtWebSockets/QtWebSockets>
#include <QDateTime>
#include "Global.h"
#include <QDebug>


namespace Ui {
class addfriendreceiver;
}

class addfriendreceiver : public QDialog
{
    Q_OBJECT

public:
    addfriendreceiver(QWidget *parent,user userSelf,QVariantMap pullChatMap,QWebSocket* socketi);
    ~addfriendreceiver();
private slots:
    void accept_clicked();
    void refuse_clicked();
signals:
    void closeaddfriendreceiver();
private:
    Ui::addfriendreceiver *ui;
    QWebSocket* socket;
    QString ip;
    QString port;
    QNetworkAccessManager manager;
    user userSelf;
    QVariantMap pullMap;
};

#endif // ADDFRIENDRECEIVER_H
